import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import store from './store/index';



//引入路由

import { Router,Route,hashHistory,IndexRoute } from 'react-router';


//引入模块
import App from './modules/App';
import News from './modules/News';
import Product from './modules/Product';
import Home from './modules/Home';


ReactDOM.render(
	<Provider store={store}>
		<Router history={hashHistory}>
			<Route path='/' component={App}>
				<IndexRoute component={Home}/>
				<Route path='/news' component={News}/>
				<Route path='/product' component={Product}/>
			</Route>
		</Router>
	</Provider>,
	document.getElementById('app')
)
